<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
<META HTTP-EQUIV="Expires" CONTENT="0"> 
<meta http-equiv="Content-Type" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8">
<title>修改头像</title>
</head>
	<script type="text/javascript"
	src="../js/user/portrait.js"></script>
<body>
	<center>
			<br>
			<img id="portraitImg" src="" width="100" height="100"/>
			<form id="updatePortraitForm" onsubmit="return checkForm();" action="updatePortrait.html"  method="POST" enctype="multipart/form-data" >
					上传头像:<input type="file" name="portraitfile" id="portraitfile"><br>
					<input type="submit" value="上传"/>
					<input type="button" value="关闭"/>
   		    </form>		
			
            <font>结果:$uploadInfo</font>
			</iframe>
	</center>
</body>
</html>
	
<script type="text/javascript">
	window.onload=function(){
		getPortrait();
	}
	</script>